# -*- coding: utf-8 -*-
"""
@Time: 2022/7/29 11:33
@Author: jins
@File: 14.py
@Introduction: 
"""

# s = datetime(2021, 6, 1, 0, 0, 0)
# while True:
#     with open('设备月数据6月-6月.csv', 'a') as f:
#         s_tomorrow = s+timedelta(days=30)
#         f.write(str(s)+','+str(s_tomorrow)+'\n')
#         # f.write(str(s)+'\n')
#         s += timedelta(days=1)
#     if s == datetime(2022, 5, 1, 0, 0, 0):
#         break

# def print_num(start_num, step):
#     for i in range(start_num, start_num + step):
#         print(i)
#
#
# with ThreadPoolExecutor(max_workers=10) as t:
#     obj_list = []
#     for num in range(2):
#         obj = t.submit(print_num, num, 5)
#         obj_list.append(obj)
#     for future in as_completed(obj_list):
#         data = future.result()
#         print(data)
